package structure.link;

public class Node<T> {
  public T data;
  // 关联下一个对象
  public Node<T> next;

  public Node(T data) {
    this.data = data;
  }

  public Node<T> getNext() {
    return next;
  }

  public void setNext(Node<T> next) {
    this.next = next;
  }
}